package com.lpz.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

//变成对象
@Controller
public class hellocontroller2 {
    //访问的路径  经过试验，关于path的问题中的/ 无论是在javabean中或者是jsp中。只要写就好了
    @RequestMapping("hello2")
    public String say(){
        System.out.println("自己动词");
        return "success";
    }
}
